package ar.edu.utn.frgp.utiles;

import javax.servlet.http.HttpServletRequest;

public class HttpUtilities {
	
	public static String getUrlRoot(HttpServletRequest req){
		StringBuffer sb = new StringBuffer();
		
		sb.append("http://")
		.append(req.getServerName())
		.append(":")
		.append(req.getServerPort())
		.append(req.getContextPath())
		.append('/')
		;
		return sb.toString();
	}

}
